const EventEmitter = require('events')

class MyEventEmitter extends EventEmitter {}

const myEventEmitter = new MyEventEmitter()

myEventEmitter.on('play', () => {
  console.log('played.')
})

myEventEmitter.on('play', () => {
  console.log('played played.')
})

myEventEmitter.emit('play')